package org.lq.his.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lq.his.pojo.Dictionary;
import org.lq.his.pojo.Section;

public interface DictionaryService {
	
	//查询所有
	public List<Dictionary> getAll();
	
	//分页查询
	public List<Dictionary> getListByCondition(int start,int limit,Dictionary condition,String column,String orderBy);
	
	//查询条数
	public Integer getCountByCondition(Dictionary condition);
	
	//查询父级
	public List<Dictionary> getParent();
	
	//查询父级ID
	public Dictionary getparentId(Integer parentId);
	
	//添加父类
	public void getAddParent(Dictionary parent);
	
	//添加子类
	public void add(Dictionary subgrade);
	
	//根据ID查询
	public Dictionary getById(Integer id);
	
	//修改子类
	public void update(Dictionary dictionary);
	
	//修改父类
	public void getEditParent(Dictionary dictionary);
	
	//修改state
	public void getEditState(Integer[] ids);
	
	//根据key值查询所有子值
	public List<Dictionary> getDictionaryValueByKey(String key);
	
}
